<?php
namespace app\index\validate;

use think\Validate;

class Wenan extends Validate
{
    protected $rule = [
        'title' => 'require|max:30',
        'content' => 'require',
        'wid' => 'require',
        'thumb' => 'require',
    ];


    protected $message = [
        'title.require' => '请输入标题',
        'title.max' => '标题最多30个字符',
        'content.require' => '请输入内容',
        'wid.require' => '请选择分类',
        'thumb.require' => '请上传缩略图',
    ];
}